//package com.example;
//
//import org.springframework.beans.BeansException;
//import org.springframework.beans.factory.config.BeanPostProcessor;
//import org.springframework.context.ApplicationContext;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.Resource;
//
///**
// * @Description: This is a sample class.
// * @Author: Simon
// * @LastModified: 2023/12/29
// */
//@Component
//public class MyProcessor implements BeanPostProcessor {
//    @Resource
//    ApplicationContext applicationContext;
//
//
//    @Override
//    public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
//        Object bean1 = applicationContext.getBean("mqttToHttp");
//        Object bean2 = applicationContext.getBean("myBean");
//        MySpringBean bean21 = (MySpringBean) bean2;
//        MqttToHttpRoute bean11 = (MqttToHttpRoute) bean1;
//        System.out.println(bean11);
//
//        System.out.println(bean21.saySomething());
//        return BeanPostProcessor.super.postProcessAfterInitialization(bean, beanName);
//    }
//}
